#IDEA: Make smallmall the mini-town level
from Map import *
from Item import *
from Definitions import *
class SmallMall(Map.Map):
    map =   ["###############",
             "#Weapons#.....#",
             "########+.....#",
             "#.............#",
             "#..########...#",
             "#..#Powers#...#",
             "#..#######+...#",
             "#.............#",
             "#.............#",
             "#.............#",
             "#.............#",
             "#.............#",
             "#.............#",
             "#.............#",
             "###############"]
    #XXX: make no fog of war work
    flags = (scrolling)
    #add a creature
    def aftermapscript(self):
        #self.addCreature(TimeBug(13,13))
        #self.addCreature(SpacialDistortion(10,10))
        for i in range(14):
                self.addItem(i,i,WoundReverser())
    def initialize(self):#special algorithm for letter walls ;)
        for i in range(32,127):
            self.specialdefs[chr(i)] = ((L.white,color_dark_wall,chr(i)),
                     (L.white,color_light_wall,chr(i)), True, True)
        self.specialdefs["+"] = ((L.white,color_dark_ground,"+"),
                     (L.white,color_light_ground,"+"), False, False)
    